﻿@import "_variables.less";

ul.mainav {
    .mplnone;
    text-align: right;

    & > li {
        display: inline-block;
        position: relative;

        & > a {
            height: 45px;
            line-height: 44px;
            color: #333;
            font-size: 14px;
            text-align: center;
            display: block;
            width: 80px;
            transition: all .15s ease;
            border-bottom: 2px transparent solid;

            @media only screen and (min-width: 768px) {
            }

            @media only screen and (min-width: 992px) {
                width: 100px;
                font-size: 16px;
            }

            &:hover {
                color: @color_hover;
                border-color: @color_hover;
            }

            &.active {
                color: @color_main;
                border-color: @color_main;
            }
        }

        .subNav {
            display: none;
            position: absolute;
            top: 45px;
            left: -10px;
            list-style: none;
            margin: 0;
            padding: 15px 0;
            background-color: #fff;
            box-shadow: 3px 3px 5px rgba(0,0,0,.15);
            width: 100px;
        

            @media only screen and (min-width:992px) {
                left: 0;
            }

            li {
                width: 100%;

                a {
                    padding: 4px 0;
                    display: block;
                    text-align: center;

                    &:hover {
                        background-color: @color_hover;
                        color: #fff;
                    }

                    &.active {
                        background-color: @color_main;
                        color: #fff;
                    }
                }
            }
        }
    }
}

.slicknav_menu {
    display: none;
}

@media screen and (max-width: 767px) {
    /* #menu is the original menu */
    .js #menu {
        display: none;
    }

    .js .slicknav_menu {
        display: block;
    }
}

.ysnav {
    margin-top: -30px;
    display: none;

    @media only screen and (min-width:768px) {
        display: block;
    }

    ul {
        .mplnone;

        li {
            background-color: #FFF;
            color: #fff;

            a {
                padding: 12px 15px;
                display: block;

                &:hover {
                    color: #fff;
                    background-color: @color_main;
                }

                &.active {
                    color: #fff;
                    background-color: @color_main;
                }
            }
        }
    }
}

